package com.das.mechanic_alone.mvp.contract.alone;

import com.das.mechanic_base.base.X3IBaseView;
import com.das.mechanic_base.bean.alone.SearchBean;
import com.das.mechanic_base.bean.alone.ServiceHeaderBean;
import com.das.mechanic_base.bean.greendao.AloneServiceListBean;

import java.util.List;
import java.util.Map;

public interface X3AloneServiceContract {

    interface View extends X3IBaseView {

        long providerWorkBaseId();

        void getServiceInfo(List<ServiceHeaderBean>  mList,boolean isJump);

        /**
         * 获取购物车网络数据
         * @param mList
         */
        void getServiceList(List<AloneServiceListBean> mList,boolean isStart);

        void getUpdateServiceList(List<AloneServiceListBean> mList);

        void searchAloneCache();

        void listServiceBaseByCategorySus(List<ServiceHeaderBean.ShopCategoryEntityBean.ServiceBaseEntityBean> list);

    }

    interface Presenter {

        /**
         * 获取一级类目 二级类目 + 服务项目
         * @param map
         */
        void getServiceBaseInfo(Map<String,Object> map,boolean isJump);

        /**
         * 获取购物车数据
         */
        void getDetectionServiceList(boolean isStart);

        /**
         * 更改购物车数据的时候 更新后台数据
         */
        void saveDetectionService(List<AloneServiceListBean> mList);

        void listServiceBaseByCategory(SearchBean searchBean);


    }
}
